package top.wshape1.rpc.common;

/**
 * @author Wshape1
 * @version 1.0
 * @description Ordered
 * @since 2024-02-13
 */

public interface Ordered {

    /**
     * highest precedence
     *
     * @see java.lang.Integer#MIN_VALUE
     */
    int HIGHEST_PRECEDENCE = Integer.MIN_VALUE;

    /**
     * lowest precedence
     *
     * @see java.lang.Integer#MAX_VALUE
     */
    int LOWEST_PRECEDENCE = Integer.MAX_VALUE;

    /**
     * order
     *
     * @return order
     */
    int getOrder();

}
